#pragma once

#include "qlib/all.h"
#include "../../utils/shader.h"
#include "../../utils/render_line.h"
#include "../../utils/render_point.h"

namespace qbe::LineAddCorner {

struct LineAddCornerModel {
  bool is_exit = false;
  bool m_is_point_on_line = false;
  int m_point_in_splitlines_position;
  int m_clicked_num = 0;
  std::vector<qlib::Vec2d> point_array;

  qlib::Path old_path;
  std::shared_ptr<qlib::Path> selected_line;
  entt::entity sel_line_entity;

  std::shared_ptr<utils::TempRender::RenderLine> render_line;
  std::shared_ptr<utils::TempRender::RenderPoint> render_point;

};

}  // namespace qbe::move